﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game
{
    public abstract class GameObjectInfo
    {
        public String Name
        {
            get;
            set;
        }

        public abstract GameObject CreateInstance(WorldScene scene);

        public abstract void RemoveInstance(GameObject obj, WorldScene scene);
    }

    public abstract class GameObject : Entity
    {
        public string Name
        {
            get;
            set;
        }

        private GameObjectInfo mInfo;

        public GameObjectInfo Info
        {
            get
            {
                return mInfo;
            }
            set
            {
                mInfo = value;
                UpdateInfo();
            }
        }

        public abstract void UpdateInfo();
    }
}
